<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" xml:lang="en" lang="en">
	<head>
		<title>My Facelets Page</title>
		<meta http-equiv="keywords" content="enter,your,keywords,here" />
		<meta http-equiv="description"
			content="A short description of this page." />
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />

		<!--<link rel="stylesheet" type="text/css" href="styles.css">-->
	</head>
	<body>
		<p>
			<ui:insert name="body">
				<h:form>
			
				<h:commandButton value="测试" action="#{event.test}" actionListener="#{event.event}">
					<f:actionListener type="com.goldenbean.listener.ListenerTest" />
				</h:commandButton>
				
				<br/>
				
				<h:commandButton value="发送" action="#{event.test}" binding="#{event.sendButton}" actionListener="#{event.send}">
				
				</h:commandButton>
					
				<br/>
				
				<h:commandButton value="保存" action="#{event.test}" binding="#{event.saveButton}" actionListener="#{event.save}"></h:commandButton>
					
				<br/>
				
				<h:commandButton value="发送并保存" action="#{event.test}" actionListener="#{event.sendAndSave}">
				
				</h:commandButton>
					<br/>
				<h:commandButton value="sexButton" action="#{event.test}" >
				</h:commandButton>
				
				<h:selectOneMenu value="#{event.sex}" valueChangeListener="#{event.change}">
					<f:valueChangeListener type="com.goldenbean.listener.Change" />
					<f:selectItem itemLabel="男" itemValue="man"/>
					<f:selectItem itemLabel="女" itemValue="woman"/>
				</h:selectOneMenu>
			
			</h:form>
			
			<h:messages style="color:red"></h:messages>
			</ui:insert>
		</p>
	</body>
</html>
